package com.ailink.design.pattern.singleton;

/**
 * Created by Administrator on 2018/9/19
 */
public class LazySingleton {
    private static LazySingleton lazySingleton = null;

    private LazySingleton() {}

    public synchronized static LazySingleton getInstance() {
        if (lazySingleton == null) {
            lazySingleton = new LazySingleton();
        }
        return lazySingleton;
    }
}
